from meiduo_mall.libs.yuntongxun.sms import CCP
from celery_tasks.main import app

# 定义celery  发送短信任务
@app.task(name='send_sms_code')
def send_sms_code(mobile, sms_code):
    ccp = CCP()
    # ccp.send_template_sms(mobile, [sms_code, '1'], 1)  # 耗时操作，设置多线程,进行异步执行

